import request from './request.js'

export function getGoodsList(params) {
  return request({
    url: '/goods',
    method: 'get',
    params
  })
}

export const delgood = (id) => {
  return request({
    url: `/goods/${id}`,
    method: 'delete'
  })
}
export const getCateLists = () => {
  return request({
    url: '/categories',
    method: 'get'
  })
}
